﻿@model asMeishi.web.Models.dict
@{
    ViewBag.Title = "Edit";
    Layout = "~/Views/Shared/_Layout.cshtml";
}
<h2>
    Edit</h2>
    @TempData["info"]

@using (Html.BeginForm()) {
    <fieldset>
        <legend>Fields</legend>
        <div class="editor-label">
            @Html.LabelFor(model => model.name)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.name) @Html.ValidationMessageFor(model => model.name)
        </div>
        <p>
            <input type="submit" value="Save" />
        </p>
    </fieldset>
}
@if (Model.Id != null) { @Html.Partial("dictItemList"); }

<div>
    @Html.ActionLink("Back to List", "Index")
</div>
